package com.iss.service;

import com.iss.model.Employee;

import java.util.ArrayList;
import java.util.List;

public class EmployeeService {


    public List<Employee> getList() {

        /*访问数据库，获取列表数据*/

        List<Employee> list= new ArrayList<>();

        Employee employee1 = new Employee();
        employee1.setName("L");
        employee1.setGender("男");
        employee1.setDept("HR");

        Employee employee2 = new Employee();
        employee2.setName("M");
        employee2.setGender("女");
        employee2.setDept("HR");


        list.add(employee1);
        list.add(employee2);
        return  list;
    }


}
